/*表单工具*/
var FormTools=(function(){


    return {
        createAutoSubmitForm:function(url,params,){
            var form = $('<form />', {action : url, method:"post", style:"display:none;"}).appendTo('body');
            $.each(params, function(k, v) {
                if ( k != "url" ){
                    form.append('<input type="hidden" name="' + k +'" value="' + v +'" />');
                }
            });
            form.submit();
        }
    };
})();
